package com.haiyou.sdk.log;

public enum LogType {
    NONE(0, "空"),
    open(1, "拉起游戏"),
    start(2, "启动游戏"),
    register(3, "注册"),
    login(4, "登录"),
    stage(5, "关卡"),
    guideClose(6, "引导关闭"),
    advert(7, "广告"),
    newStage(8, "新关卡"),
    playerUidMapping(9, "映射"),
    userInfoAuthorize(10,"用户头像授权"),
    rewardFrame(11,"奖励头像框"),
    guideShow(12,"引导展示"),
    firstStageScore(13,"第一关最大分数"),

    firstResult(14,"第一关结算"),
    firstResultAdClick(15,"第一关结算广告点击")

    ;

    private final int type;
    private final String des;

    LogType(int type, String des) {
        this.type = type;
        this.des = des;
    }

    public static LogType getByType(int type) {
        for (LogType value : values()) {
            if (value.getType() == type) {
                return value;
            }
        }
        return NONE;
    }

    public int getType() {
        return type;
    }

    public String getDes() {
        return des;
    }
}
